import { createRouter, createWebHashHistory } from 'vue-router';

// 静态路由
const constantRoutes = [
    {
        path: '/',
        name: 'Home',
        component: () => import('@/pages/Home.vue')
    },
    {
        path: '/about',
        name: 'About',
        component: () => import('@/pages/About.vue')
    },
    {
        path: '/flow',
        name: 'Flow',
        component: () => import('@/pages/flow/index.vue')
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes: constantRoutes
});

export default router;